<?php

/*
**	ACTION findPost
**	Find post by ID
*/

// TODO: Compute the proper outcome
$outcome = 'postFound';

switch ($outcome) {
	/*
		Outcome: Post found
	*/
	case 'postFound':
		$messageClass = 'success';
		redirect('/ligature/post');
		break;
	/*
		Outcome: Post not found
	*/
	case 'postNotFound':
		$messageClass = 'failure';
		$this->session->set_flashdata('message', array('class' => $messageClass, 'text' => $this->lang->line('ligature_p_findPost_postNotFound_message')));
		redirect('/ligature/post');
		break;
	default:
		show_error("Unexpected outcome '$outcome' to action 'findPost' on page 'p'.");
}

/* clickframes::version=3969812844::clickframes */
?>